package com {

	/**
	 * 控制层基类
	 * @author Liseen
	 */
	public class ControllerBase extends SuperBase {
		protected var _data:Data;
		protected var _lang:Lang;

		public function ControllerBase() {
			super();

		}

		/**
		 * 获取语言
		 */
		public function get lang():Lang {
			return this._lang;
		}

		/**
		 * 初始化控制层
		 * @param	data	数据层
		 * @param	lang	语言
		 */
		public function init(data:Data, lang:Lang):void {
			this._data = data;
			this._lang = lang;
		}

		protected function createObject(_arg1:Class, _arg2:String = ""):Object {
			_arg2 = (_arg1 + "");
			_arg2 = _arg2.replace(/Controller\]$/, "");
			return createObjectBase(_arg1, _arg2, null, (this as Controller), this._data);
		}

	}

}
